// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import { fullScreenContainer, borderBox7, scrollBoard } from '@jiaminghi/data-view'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)
Vue.use(fullScreenContainer)
Vue.use(borderBox7)
Vue.use(scrollBoard)
Vue.config.productionTip = false

// function setRem () {
//   var whdef = 100 / 1920 // 表示1920的设计图,使用100PX的默认值
//   var bodyWidth = document.body.clientWidth // 当前窗口的宽度
//   var rem = bodyWidth * whdef // 以默认比例值乘以当前窗口宽度,得到该宽度下的相应FONT-SIZE值
//   document.getElementsByTagName('html')[0].style.fontSize = rem + 'px'
// }
// window.addEventListener('load', setRem)
// window.addEventListener('resize', setRem)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
